/*
 ============================================================================
 Name		: SCOTestClientDocument.cpp
 Author	  : William Zhang
 Copyright   : all rights reserved.
 Description : CSCOTestClientDocument implementation
 ============================================================================
 */

// INCLUDE FILES
#include "SCOTestClientAppUi.h"
#include "SCOTestClientDocument.h"

// ============================ MEMBER FUNCTIONS ===============================

// -----------------------------------------------------------------------------
// CSCOTestClientDocument::NewL()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CSCOTestClientDocument* CSCOTestClientDocument::NewL(CEikApplication& aApp)
	{
	CSCOTestClientDocument* self = NewLC(aApp);
	CleanupStack::Pop(self);
	return self;
	}

// -----------------------------------------------------------------------------
// CSCOTestClientDocument::NewLC()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CSCOTestClientDocument* CSCOTestClientDocument::NewLC(CEikApplication& aApp)
	{
	CSCOTestClientDocument* self = new (ELeave) CSCOTestClientDocument(aApp);

	CleanupStack::PushL(self);
	self->ConstructL();
	return self;
	}

// -----------------------------------------------------------------------------
// CSCOTestClientDocument::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CSCOTestClientDocument::ConstructL()
	{
	// No implementation required
	}

// -----------------------------------------------------------------------------
// CSCOTestClientDocument::CSCOTestClientDocument()
// C++ default constructor can NOT contain any code, that might leave.
// -----------------------------------------------------------------------------
//
CSCOTestClientDocument::CSCOTestClientDocument(CEikApplication& aApp) :
	CAknDocument(aApp)
	{
	// No implementation required
	}

// ---------------------------------------------------------------------------
// CSCOTestClientDocument::~CSCOTestClientDocument()
// Destructor.
// ---------------------------------------------------------------------------
//
CSCOTestClientDocument::~CSCOTestClientDocument()
	{
	// No implementation required
	}

// ---------------------------------------------------------------------------
// CSCOTestClientDocument::CreateAppUiL()
// Constructs CreateAppUi.
// ---------------------------------------------------------------------------
//
CEikAppUi* CSCOTestClientDocument::CreateAppUiL()
	{
	// Create the application user interface, and return a pointer to it;
	// the framework takes ownership of this object
	return new (ELeave) CSCOTestClientAppUi;
	}

// End of File
